﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Aliyeye.Car.Net.UI.PopupDialog
{
    public partial class DialogConfirm : Form
    {
        public DialogConfirm(string message)
        {
            InitializeComponent();
            pbIcon.Image = Bitmap.FromHicon(SystemIcons.Question.Handle);
            this.lblMessage.Text = message;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
            this.Dispose(true);
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
            this.Dispose(true);
        }
    }
}
